package net.huashitong.scheduling.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;

import net.huashitong.scheduling.dao.TownshipGradeDao;
import net.huashitong.scheduling.entity.TownshipGrade;

@Service
public class TownshipGradeService extends StringPKService<TownshipGrade> {
	@Autowired
	private TownshipGradeDao dao;
	
	@Override
	protected BaseDao<TownshipGrade,String> getDao(){
		return dao;
	}
	 public List<TownshipGrade> queryByMonth(String month,String parentId){
		 return dao.queryByMonth(month, parentId);
	 }
	 
	 public List<TownshipGrade> queryByParentId(String parentId){
		 return dao.queryByParentId(parentId);
	 }
}
